import '@babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import  { Provider } from 'react-redux';
// 引入路由
import Router from './router';
import store from './store';
// 引入全局样式, mock, 拦截请求,设置token信息等
import './mock';
import './index.less';
import '../src/components/common/api/server';

const App = (
  <Provider store ={store}>
    <div>
      <Router />
    </div>
  </Provider>
);
ReactDOM.render(App, document.getElementById('root'));
